project(NEIDERRA)

set(CMAKE_BUILD_TYPE Debug)
if(WIN32)
	set(BOOST_DIR e:/sdk/C++/boost_1_34)
else(WIN32)
	set(BOOST_DIR /usr/local/include/boost_1_34/)
endif(WIN32)

include_directories(${NEIDERRA_SOURCE_DIR} ${BOOST_DIR})

aux_source_directory(putter RENDER_SRC)
aux_source_directory(core CORE_SRC)
aux_source_directory(core/io CORE_IO_SRC)
aux_source_directory(gui GUI_SRC)
aux_source_directory(math MATH_SRC)
aux_source_directory(scene SCENE_SRC)
aux_source_directory(utils UTILS_SRC)
aux_source_directory(utils/loaders/nscript UTILS_LOADERS_NSCRIPT_SRC)
aux_source_directory(utils/vm UTILS_VM_SRC)

IF(WIN32)
aux_source_directory(platform/win32 PLATFORM_SRC)
aux_source_directory(platform/win32/gui PLATFORM_GUI_SRC)
ELSE(WIN32)
aux_source_directory(platform/linux PLATFORM_SRC)
aux_source_directory(platform/linux/gui PLATFORM_GUI_SRC)
ENDIF(WIN32)


add_library(
  neiderra 
  ${CORE_SRC} 
  ${CORE_IO_SRC} 
  ${GUI_SRC} 
  ${MATH_SRC} 
  ${PLATFORM_SRC} 
  ${PLATFORM_GUI_SRC} 
  ${RENDER_SRC} 
  ${SCENE_SRC} 
  ${UTILS_SRC} 
  ${UTILS_LOADERS_NSCRIPT_SRC} 
  ${UTILS_VM_SRC}
  )
